package com.example.questionnaire;

import android.app.Application;
import android.os.Handler;

/**
 * author: liweixing
 * date: 2018/1/3
 */

public class MyApplication extends Application {

    public static MyApplication application;
    private int mainTid;
    private Handler handler;
    private boolean isStartOver;


    @Override
    public void onCreate() {
        super.onCreate();
        application = this;
        mainTid = android.os.Process.myTid();
        handler = new Handler();
    }

    public int getMainTid() {
        return mainTid;
    }

    public Handler getHandler() {
        return handler;
    }

    public boolean isStartOver() {
        return isStartOver;
    }

    public void setStartOver(boolean startOver) {
        isStartOver = startOver;
    }
}
